home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / rmi / RemoteException.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  860 b   |  32 lines

  1. package java.rmi;
  2.  
  3. import java.io.IOException;
  4.  
  5. public class RemoteException extends IOException {
  6.    private static final long serialVersionUID = -5148567311918794206L;
  7.    public Throwable detail;
  8.  
  9.    public RemoteException() {
  10.       this.initCause((Throwable)null);
  11.    }
  12.  
  13.    public RemoteException(String var1) {
  14.       super(var1);
  15.       this.initCause((Throwable)null);
  16.    }
  17.  
  18.    public RemoteException(String var1, Throwable var2) {
  19.       super(var1);
  20.       this.initCause((Throwable)null);
  21.       this.detail = var2;
  22.    }
  23.  
  24.    public String getMessage() {
  25.       return this.detail == null ? super.getMessage() : super.getMessage() + "; nested exception is: \n\t" + this.detail.toString();
  26.    }
  27.  
  28.    public Throwable getCause() {
  29.       return this.detail;
  30.    }
  31. }
  32.